{% extends 'libraries/index.html' %}

	{% block content %}

	<form action="{% url 'libraries:returns' %}" method="post">
		{% csrf_token %}
		{% if x != 0 %}
		<table align="center", border="1">
			<input type="submit" value="确定" id="submit_button">
			<tr>
				<td align="center"></td>
				<td align="center">序号</td>
				<td align="center">类别</td>
				<td align="center">书名</td>
			</tr>
		{% else %}
			<p>您还没有借任何书籍！</p>
		{% endif %}
		{% for book in books %}
			<tr>
		{% if book.state == 1 %} 				
			<td align="center">
				<input type="checkbox" name="pk" value="{{ book.id }}">
			</td>
			<td align="center">
				{{ book.numbers }}
			</td>
			<td align="center">
				{{ book.book_type }}
			</td>
			<td align="center">
				{{ book.name }}
			</td>					
			{% endif %}
			</tr>
			{% endfor %}
		</table>
	</form>

	<style type="text/css">
	</style>

	{% endblock content %}
